﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DELVE_GAME.ViewStructure.MapEditor;
using Microsoft.Xna.Framework.Audio;

namespace DELVE_GAME.ViewStructure.GameActions
{
    class ViewRaceTerritoryGameAction : GameAction
    {
        MapEditorStage stage;
        MapDrawer mapComponent;
        Map map;
        SoundEffectInstance sound;
        public ViewRaceTerritoryGameAction( MapEditorStage stage, MapDrawer mapComponent, Map map, SoundEffectInstance sound)
        {
            this.stage = stage;
            this.mapComponent = mapComponent;
            this.map = map;
            this.sound = sound;
        }

        public override void doAction()
        {
            sound.Play();
            map.changeSelectionMode((int)Map.SELECTION_MODES.RACE_TERRITORY);
            mapComponent.updateMap();
        }
    }
}
